package com.meterreadingsys.util;

import android.app.AlertDialog;
import android.content.Context;

public class Dialog {
	
	/**
	 * 创建消息对话框
	 * @param context 容器
	 * @param title 
	 * @param message
	 * @param Icon 图片
	 * @return
	 */
   public static AlertDialog CreateAlertDialog(Context context,String title,String message,int Icon){
	   AlertDialog dialog=new AlertDialog.Builder(context).create();
	   dialog.setTitle(title);
	   dialog.setMessage(message);
	   dialog.setIcon(Icon);
	return dialog;
   }
}
